/**
 *
 */
package org.summerframework.component.security;


/**
 * 常量定义接口
 *
 * @author 石超
 */
public class Constants {
    public final static String DELIMITER_AMP = "&";
    public final static String DELIMITER_EQUAL = "=";
    /**
     * 输入用户名
     */
    public static final String USER_NAME_IN_VM = "username";
    /**
     * 输入密码
     */
    public static final String PASSWORD_IN_VM = "password";
    /**
     * 登录类型
     */
    public static final String LOGIN_TYPE = "loginType";
    /**
     * 设备token
     */
    public static final String DEVICE_TOKEN = "deviceToken";
    /**
     * 类型
     */
    public static final String DYNAMIC_TYPE = "type";
    /**
     * 动态密码
     */
    public static final String DYNAMIC_CODE = "code";
    /**
     * 二维码
     *
     */
    public static final String QR_CODE = "qrcode";
    /**
     * 是否加密
     */
    public static final String IS_ENCRYPT = "encrypt";
    /**
     * 是否json
     */
    public static final String JSON = "json";
    /**
     * 登录来源参数
     */
    public static final String LOGIN_FROM = "from";
    /**
     * 过期时间
     */
    public static final String LOGIN_SESSION_EXPIRING_TIME = "expiring";
    /**
     * 登录前一个页面url
     */
    public static final String LOGIN_REFFER = "reffer";
    /**
     * 登录模板类型,可设置CSS等
     */
    public static final String LOGIN_STYPE = "style";
    public static final String TOKEN = "token";
    public static final String CALLBACK = "callback";
    /**
     * 来源
     */
    public static final String SOURCE = "source";
    /**
     * 跳转url,同时支持
     */
    public static final String REDIRECT_URL = "redirectURL";
    /**
     * 跳转url,同时支持
     */
    public static final String REDIRECT_URL2 = "redirectUrl";
    public static final String SESSION_USERNAME = "username";
    public static final String SESSION_USER_ID = "user_id";
    public static final String SESSION_LOGIN_DATE = "login_data";
    public static final String SESSION_LOGOUT_TYPE = "logout_type";
    public static final String SESSION_DEVICE_TOKEN = "device_token";
    public static final String SESSION_WECHAR_SESSION_KEY = "session_key";
    public static final String REMEMBER_ME = "remember-me";
    public static final String LOGIN_IP = "LOGIN_IP";
    public static final String REQUEST_IP = "REQUEST_IP";
    public static final Integer MAX_LOGIN_FAIL_COUNT = 3;
    public static final String MESSAGE_PARAM_CODE = "code";
    public static final String USER_AGENT = "user-agent";
    /**
     * 普通登录 默认30分钟
     */
    public final static Integer SESSION_EXPIRING_TIME = 1800;

    public static final String WEBSOCKET_USER_PREFIXES = "/user/";
    public static final String WEBSOCKET_QUEUE_PREFIXES = "/queue/";
    public static final String WEBSOCKET_TOPIC_PREFIXES = "/topic/";
    public static final String WEBSOCKET_SEND_ALL_USER_PREFIXES = "/user";
}
